﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="PS_EmployeeInquire.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.PS_EmployeeInquire" %>

<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc4" %>
<%@ Register src="../Controls/DatePicker.ascx" tagname="DatePicker" tagprefix="uc2" %>

<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  
    
    <script type="text/javascript">  
      function isNumberKey(event)  // ตัวเลขอย่างเดียว
      {
         var charCode = (event.which) ? event.which : event.keyCode
         if(charCode > 31 && (charCode < 48 || charCode > 57))
         {
//                 alert("กรอกได้แต่ตัวเลขครับ!")
             return false;
          }
         return true;
      }
     
        function openProjectDetails(id)
        {
            radopen("PR_SalaryDetail.aspx?id=" + id , "ProjectDtls");
             return false;

            //maximunWindow();
        }
        function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }
    </script>

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid2" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
    
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<Windows>
    <telerik:RadWindow 
        id="ProjectDtls" 
        runat="server"
        showcontentduringload="false"
        VisibleStatusbar="false"
        title="รายการโยกย้าย"
        width="1100px"
        Height="600px"        
        Modal="true"
        behaviors="Close">
    </telerik:RadWindow>
</Windows>

        <Windows>
            <telerik:RadWindow 
                ID="RadWindow1"  
                DestroyOnClose = "true"               
                Modal ="true"                
                VisibleStatusbar ="false"
                runat="server">
            </telerik:RadWindow>
        </Windows>


</telerik:RadWindowManager>
    
    <title>สอบถามข้อมูลบุคลากรตามเงื่อนไข</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
    
      <asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
        <tr>
            <td width="280" valign = "top">
                
                <uc4:user ID="user1" runat="server" />
                
            </td>
            
            <td width="20" ></td>
            
            <td>            
            <div class="moduleDivSlim700">
                    <div class="moduleDivBottom700">
                         <asp:Panel ID="PanelFilter" runat="server" Width="700px" ScrollBars="Auto">
                         <table>
                            <tr>
                                <td>
                                
                                </td>
                            </tr>
                         </table>
                        </asp:Panel>
                    </div>
                </div>
            </td>
          </tr>
        </table>
          
          <tr>
          <td>
          <table>
                  <tr>
                      <td>
                          <div class="moduleDivSlim1000x450">
                              <div class="moduleDivBottom1000">
                                  <asp:Panel ID="Panel22" Height="450px" runat="server" ScrollBars="Auto" Width="1000px">
                                      <table align="center" width="950px">
                                            <tr>
                                              <td align="right" style="width: 98px" >
                                                  ประเภทบุคลากร :</td>
                                              <td align = "left">                                                  
                                                  <telerik:RadComboBox ID="cmbEmployeeType" runat="server" 
                                                      CausesValidation="false" 
                                                      DataTextField="Name" 
                                                      DataValueField="Sequence" 
                                                      EmptyMessage="... เลือกทั้งหมด..." Filter="Contains" 
                                                      OnClientTextChange="onTextChange" 
                                                      Width="200px">
                                                  </telerik:RadComboBox>                                                  
                                                </td>
                                                <td align = "right" style="width: 91px"> สำนัก/กอง :</td>
                                                <td align = "left">
                                                    <telerik:RadComboBox ID="cmbJobSite" runat="server" AllowCustomText="true" 
                                                        DataTextField="Name" DataValueField="Sequence" 
                                                        EmptyMessage="... เลือกทั้งหมด ..." Filter="Contains" 
                                                        OnClientTextChange="onTextChange" Width="250px" style="margin-left: 0px">
                                                    </telerik:RadComboBox>
                                                </td>
                                          </tr>                                        
                                            <tr>
                                                <td align="right" style="width: 98px" valign="middle">
                                                    อายุครบ :</td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtAge" Runat="server" MaxLength="10" Skin="Outlook" 
                                                        Width="100px">
                                                    </telerik:RadTextBox>
                                                    &nbsp;ปี</td>
                                                <td align="right">
                                                    เมื่อวันที่ :</td>
                                                <td align="left">
                                                    <uc2:DatePicker ID="txtDateAge" runat="server" EnableViewState="False" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="middle">
                                                    อายุราชการครบ :</td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtExp" Runat="server" MaxLength="10" Skin="Outlook" 
                                                        Width="100px">
                                                    </telerik:RadTextBox>
                                                    &nbsp;ปี</td>
                                                <td align="right">
                                                    เมื่อวันที่ :</td>
                                                <td align="left">
                                                    <uc2:DatePicker ID="txtDateExp" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    &nbsp;</td>
                                                <td align="left">
                                                <asp:Label runat="server" ID="lblCarType" 
                                                    AssociatedControlID="RadComboBox1" Text="ประเภทตำแหน่ง:" />
                                                <telerik:RadComboBox ID="cmbPosType" runat="server" 
                                                    DataValueField="Sequence" DataTextField="Name" 
                                                    EmptyMessage="All Types" 
                                                    HighlightTemplatedItems="true"
                                                    AllowCustomText="true" Width="240px" 
                                                    OnClientDropDownClosed="onDropDownClosing">
                                                    <ItemTemplate>
                                                        <asp:CheckBox runat="server" ID="chk1" Checked="true"/>
                                                        <asp:Label runat="server" ID="Label1" AssociatedControlID="chk1">
                                                            <%# Eval("Name")%>
                                                        </asp:Label>
                                                    </ItemTemplate>
                                            </telerik:RadComboBox>

                                                </td>
                                                <td align="center">
                                                    &nbsp;</td>
                                                <td align="left" valign="middle">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    ประเภทตำแหน่ง :</td>
                                                <td align="left">
                                                    
                                                    <asp:ListBox ID="listPositionType" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="200px"></asp:ListBox>
                                                </td>
                                                <td align="center">
                                                    <asp:Button ID="Button1" runat="server"
                                                      Text="ค้นหา" Width="104px" style="height: 26px" />
                                                    <asp:ImageButton ID="btnSelectPosType" runat="server" 
                                                        ImageUrl="~/App_UI/Images/Buttons/select_icon.gif" />
                                                    <br />
                                                    <asp:ImageButton ID="btnMovePostType" runat="server" 
                                                        ImageUrl="~/App_UI/Images/Buttons/cancel_icon.gif" />
                                                </td>
                                                <td align="left" valign="middle">
                                                    <asp:ListBox ID="listQual5" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="250px"></asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    ตำแหน่ง :</td>
                                                <td align="left">
                                                    <asp:ListBox ID="listFieldPosition" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="200px"></asp:ListBox>
                                                </td>
                                                <td align="center">
                                                    <asp:ImageButton ID="btnMoveQua0" runat="server" 
                                                        ImageUrl="~/App_UI/Images/Buttons/cancel_icon.gif" />
                                                </td>
                                                <td align="left" valign="middle">
                                                    <asp:ListBox ID="selectFieldPosition" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="250px"></asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="middle">
                                                    ครองระดับ :</td>
                                                <td align="left">
                                                    <telerik:RadComboBox ID="cmbClass" runat="server" 
                                                        CausesValidation="false" 
                                                        DataTextField="Name" 
                                                        DataValueField="Sequence" 
                                                        EmptyMessage="...เลือกทั้งหมด..." Filter="Contains" 
                                                        OnClientTextChange="onTextChange" Width="200px">
                                                    </telerik:RadComboBox>
                                                </td>
                                                <td align="right">
                                                    ระยะเวลา :</td>
                                                <td align="left" valign="middle">
                                                    <telerik:RadTextBox ID="txtDurateClass" Runat="server" MaxLength="10" 
                                                        Skin="Outlook" Width="100px">
                                                    </telerik:RadTextBox>
                                                    &nbsp;ปี</td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    ระดับการศึกษา :</td>
                                                <td align="left">
                                                    <telerik:RadComboBox ID="cmbDegree" runat="server" AutoPostBack="True" 
                                                        CausesValidation="false" DataTextField="Name" DataValueField="Sequence" 
                                                        EmptyMessage="... เลือกทั้งหมด..." Filter="Contains" 
                                                        OnClientTextChange="onTextChange" Width="200px">
                                                    </telerik:RadComboBox>
                                                </td>
                                                <td align="right">
                                                    &nbsp;</td>
                                                <td align="left">
                                                    &nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    วุฒิการศึกษา :</td>
                                                <td align="left">
                                                    <asp:ListBox ID="listQual" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="200px"></asp:ListBox>
                                                </td>
                                                <td align="right">
                                                    <asp:ImageButton ID="btnMoveQua1" runat="server" 
                                                        ImageUrl="~/App_UI/Images/Buttons/cancel_icon.gif" />
                                                </td>
                                                <td align="left">
                                                    <asp:ListBox ID="selectQual" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="250px">
                                                        </asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    สาขาวิชาเอก :</td>
                                                <td align="left">                                                

                                                    <asp:ListBox ID="listMajor" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="200px"></asp:ListBox>
                                                </td>
                                                <td align="right" style="width: 91px">
                                                    <asp:ImageButton ID="btnMoveQua2" runat="server" 
                                                        ImageUrl="~/App_UI/Images/Buttons/cancel_icon.gif" />
                                                </td>
                                                <td align="left">
                                                    <asp:ListBox ID="selectMajor" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="250px"></asp:ListBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" style="width: 98px" valign="top">
                                                    สถาบันการศึกษา :</td>
                                                <td align="left">
                                                    <asp:ListBox ID="listInstitutes" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="200px"></asp:ListBox>
                                                </td>
                                                <td align="right" style="width: 91px">
                                                    <asp:ImageButton ID="btnMoveQua3" runat="server" 
                                                        ImageUrl="~/App_UI/Images/Buttons/cancel_icon.gif" />
                                                </td>
                                                <td align="left">
                                                    <asp:ListBox ID="selectInstitutes" runat="server" Height="50px" 
                                                        SelectionMode="Multiple" Width="250px"></asp:ListBox>
                                                </td>
                                            </tr>
                                          <tr>
                                              <td align="right" style="width: 98px">
                                                  &nbsp;</td>
                                              <td style="width: 212px">                                         
                                                  <asp:Button ID="cmdSearch" runat="server" onclick="cmdSearch_Click" 
                                                      Text="ค้นหา" Width="104px" style="height: 26px" />
                                         
                                              </td>
                                              <td style="width: 91px">
                                                  &nbsp;</td>
                                                  <td>
                                                  &nbsp;</td>
                                          </tr>
                                      </table>
                                  </asp:Panel>
                              </div>
                          </div>
                      </td>
                  </tr>

              </table>
          </td>
          </tr>
          
          <tr>
          <td>
          <div class="moduleDivSlim1000x450">
          <div class="moduleDivBottom1000">
          
          </div>
          </div>
          </td>
          </tr>
</table>
</asp:panel>

</asp:Content>
